package com.pz.chat.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ums_member_focus")
public class MemberFocusEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long focusId;

    private Long fromMemberId;

    private Long toMemberId;

    private Date focusTime;

    /**
     * 0-> 发起关注; 1 -> 通过关注; -1 -> 拒绝关注
     */
    private int ack;

    public MemberFocusEntity(Long fromMemberId, Long toMemberId, int ack, Date focusTime) {
        this.fromMemberId = fromMemberId;
        this.toMemberId = toMemberId;
        this.ack = ack;
        this.focusTime = focusTime;
    }
}
